package com.ruoyi.web.controller.agoniapp;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.service.IAgoniNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/agoniapp/notice")
public class NoticeController {
    @Autowired
    private IAgoniNoticeService agoniNoticeService;

    //获取公告列表
    @GetMapping("/listNotices")
    public AjaxResult getNoticeList() {
        return AjaxResult.success(agoniNoticeService.selectAgoniNoticeList());
        }


}
